Fix CLI hot-bar rendering and add Antigravity coverage to probe#1
Open
michaelhe0914 wants to merge 1 commit into
Open
Fix CLI hot-bar rendering and add Antigravity coverage to probe#1michaelhe0914 wants to merge 1 commit into
michaelhe0914 wants to merge 1 commit into
Conversation
Imports the full LLM Usage Dashboard source (previously only README was tracked) and includes two correctness fixes made while auditing the three-provider (Codex / Claude / Antigravity) token sync: - cli-render.js: the >=85% hot red progress bar was dead code. FG.red was emitted before the 256-color fill, so the later SGR overrode it and over-budget bars never turned red. Use red as the fill color instead. - probe.js: the sanity-check tool only exercised Codex + Claude, so a broken Antigravity collector would go undetected. Add an Antigravity section (prompt/flow credits + per-model quotas) so probe covers all three providers. Also adds a .gitignore so node_modules and build output stay out of the repo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Audited the three-provider (Codex / Claude / Antigravity) token-usage sync and fixed two correctness defects. This branch also imports the full application source, since
masterpreviously tracked onlyREADME.md.Why / changes
src/main/cli-render.js— dead hot red bar. The>=85%over-budget highlight emittedFG.redbefore the 256-color fill SGR, so the later code overrode it and bars never actually turned red. Now red is used as the fill color when hot, matching the GUI's.hotbehavior.src/main/probe.js— incomplete sanity check. The probe only exercised Codex + Claude, so a broken Antigravity collector would go undetected by the very tool meant to verify sync. Added an Antigravity section (prompt/flow credits + per-model quotas) sonpm run probenow covers all three providers..gitignoreadded sonode_modules/and build output stay out of the repo.Verification
node src/main/probe.js— all three collectors return live data (Codex 2107 events / go plan 67%, Claude 1213 events, Antigravity Pro / 8 models).node src/main/cli-render.js— the Antigravity 99%/100% credit bars now emit a bareESC[31m(red) sequence with no override.Reviewer notes
All three providers already sync correctly against current on-disk formats; these are targeted fixes, not a rebuild. Heads-up: newer Codex builds are emitting a
limit_id:premiumcredit-model snapshot (nullprimary/secondary) alongside the classiclimit_id:codexwindow snapshot. Thegoplan still reports the window form, so quota display is unaffected for now — but a follow-up may be needed if OpenAI fully migrates to the credits model.🤖 Generated with Claude Code